package com.liuf.di.repository;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @program: spring-cloud-liuf-master
 * @description: 转换持久层操作
 * @author: Mr.Liu
 * @create: 2018-09-20 16:25
 * @码云： https://gitee.com/www.jiandan.com
 **/
public interface ITranRepository {

    /**
     * 获取Job任务集合
     * @param params    查询参数[分页参数和查询参数]
     * @return  PageInfo
     */
    List<Map<String,Object>> findTrans(Map<String,Object> params);

    /**
     * 获取单一任务
     * @param id    主键
     * @return  Map
     */
    @Select(value = "select * from r_transformation t where t.ID_TRANSFORMATION = #{id}")
    Map<String, Object> getTran(@Param(value = "id") long id);
}
